﻿using System;

namespace Hongsh.Pay.Client.Proxy.Http {
    // Token: 0x0200002F RID: 47
    public class HttpBufferResult : HttpContentResult {
        // Token: 0x17000093 RID: 147
        // (get) Token: 0x06000164 RID: 356 RVA: 0x00002F76 File Offset: 0x00001176
        public virtual byte[] Buffer { get; }

        // Token: 0x06000165 RID: 357 RVA: 0x00002F7E File Offset: 0x0000117E
        public HttpBufferResult(string content_type) : base(content_type) {
            //Class15.cwcZ3SWztHroi();
            //base..ctor(content_type);
        }

        // Token: 0x06000166 RID: 358 RVA: 0x0000BC2C File Offset: 0x00009E2C
        public override void WriteReponse(HttpContext ctx) {
            base.WriteReponse(ctx);
            byte[] buffer = Buffer;
            ctx.Response.ContentLength = buffer.Length;
            ctx.Response.Write(buffer, 0, ctx.Response.ContentLength);
        }
    }
}
